using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class sendInvalidCommand :  ISend
    {
        private string data;

        public sendInvalidCommand(string errorcommand) 
        {
            data = errorcommand;
        }
        
        #region ISend Members

        public void Send()
        {
            Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.errorReplyesSync.invalidCommand, data)));
        }

        #endregion
    }
}
